package com.sofar.gems.framework.service.impl;

import com.sofar.gems.framework.entity.TrainInfo;
import com.sofar.gems.framework.mapper.TrainInfoMapper;
import com.sofar.gems.framework.service.TrainInfoService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @description:
 * @company: yaorange
 * @author: 啊啊啊林
 * @version: 1.0
 * @create: 2021-09-21 19:52:33
 */
@Service
public class TrainInfoServiceImpl implements TrainInfoService {
    @Resource
    private TrainInfoMapper trainInfoMapper;

    @Override
    public int deleteByPrimaryKey(Integer trainId) {
        return trainInfoMapper.deleteByPrimaryKey(trainId);
    }

    @Override
    public int insert(TrainInfo record) {
        return trainInfoMapper.insert(record);
    }

    @Override
    public int insertSelective(TrainInfo record) {
        return trainInfoMapper.insertSelective(record);
    }

    @Override
    public TrainInfo selectByPrimaryKey(Integer trainId) {
        return trainInfoMapper.selectByPrimaryKey(trainId);
    }

    @Override
    public int updateByPrimaryKeySelective(TrainInfo record) {
        return trainInfoMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(TrainInfo record) {
        return trainInfoMapper.updateByPrimaryKey(record);
    }

    @Override
    public List<TrainInfo> selectAll() {
        return trainInfoMapper.selectAll();
    }
}
